# swig interface file for wrapping "MaCIError.cpp" 
# 29.8.2008
# <tapio.taipalus@tkk.fi>

%module MaCIError
%include std_string.i

%{
#include <string>
#include "MaCIError.hpp"
%}

namespace MaCI {
//	extern	enum EMaCIError;
	enum EMaCIError { 
    KMaCIOK                 = 0,   ///< All ok.
    KMaCIError              = -1,  ///< General error, no exact reason available
    KMaCITimeout            = -2,  ///< Operation timed out
    KMaCIUnknownClient      = -3,  ///< Unknown source/target client specified
    KMaCINoConnection       = -4,  ///< No GIMnet connection avaiable, operation cannot be completed.
    KMaCIInvalidFormat      = -5,  ///< Decoding/Encoding resulted in failure.
    KMaCINotActive          = -6,  ///< Operation failed because backend wasn't available.
    KMaCIUnimplemented      = -10, ///< Requested feature is not (yet?) implemented
    KMaCIUnknownError       = -100,///< Unknown error. This should never be returned to user!
  }; 
	
  /** Return errorcode description.
   *
   * This function returns a textual representation of the given
   * errorcode.  This function is global to 'MaCI' namespace.
   * 
   * @param[in] error         Error code to convert to verbose form
   * @return                  std::string containing the verbose form
   *                          of the error.
   */
  std::string GetErrorStr(const EMaCIError error);
}